﻿using System;

namespace cSharpHomework2
{
    class Program
    {
        static void Main()
        {
            int[] arr;
            int count = 0;
            count = Console.Read();
            arr = FindOddNum(10);
            for (int i = 0; i < arr.Length; i++)
            {
                if (arr[i] != 0)
                    Console.WriteLine(arr[i]);
            }

        }

        public static int[] FindOddNum(int input)
        {
            int[] total = new int[input];
            int n = 0;
            for (int i = 1; i <= input / 2; i++)
            {
                if (input % i == 0)
                {
                    if (IfOdd(i))
                    {
                        total[n] = i;
                        n++;
                    }
                }
            }
            return total;
        }

        public static bool IfOdd(int num)
        {
            bool isOdd = true;
            for (int i = 2; i <= num / 2; i++)
            {
                if (num % i == 0)
                {
                    isOdd = false;
                }

            }
            return isOdd;
        }
    }
}
